/*#ifndef CANVASVIEW_H_
#define CANVASVIEW_H_
#include <QGraphicsView>
#include <QMouseEvent>
#include "Canvas.h"
class CanvasView : public QGraphicsView
{
private: 
	std::vector<QImage*> undoVector;
public:

	//Move to Undo Class?
			void undo();
		void redo();
		void saveUndoState();
		void cleanUndoStack();
		int getUndoPointer() const {return undoPointer;}
	QPoint lastPoint;
	QPoint getLastPoint(){return lastPoint;}
	void setLastPoint(QPoint newPoint) {lastPoint = newPoint;}
	CanvasView(QWidget* parent = 0);
	~CanvasView(){};
	void init(QImage);
	void updatePixmap();
	virtual void mousePressEvent(QMouseEvent*);
	virtual void mouseMoveEvent(QMouseEvent*);
	virtual void mouseReleaseEvent(QMouseEvent*);
	void setPixmap(QGraphicsPixmapItem* sourcePixmap){currentPixmap = sourcePixmap;};
	void setScribbling(bool value){scribbling = value;}
	Canvas* ourCanvas;
	void setImage(QImage* sourceImage);
	QImage* getImage(){return image;};
	QImage* image;
	int undoPointer;
	QGraphicsPixmapItem* currentPixmap;
	bool scribbling;

};

      
#endif*/